package cn.xdwanj.ask.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author XDwanj
 * @since 2022-12-29
 */
@Getter
@Setter
@Schema(name = "Asklist", description = "$!{table.comment}")
public class Asklist {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String title;

    private String content;

    @JsonProperty("class")
    @TableField("class")
    @Alias("class")
    private Integer clazz;

    private Integer view;

    private LocalDateTime creattime;

    private Integer userid;
}
